import moment from 'moment';

import styles from './index.less';

const TradeCenterTime = ({ tradeCenterTime }) => {
  return (
    <div className={styles.tradeCenterTime}>
      <span className={styles.time}>{moment(tradeCenterTime).format('HH:mm:ss')}</span>
      <div className={styles.dateAndWeek}>
        <span>{moment(tradeCenterTime).format('YYYY年MM月DD日')}</span>
        <span>{moment(tradeCenterTime).format('dddd')}</span>
      </div>
    </div>
  );
};

export default TradeCenterTime;
